﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fastyou.DesignPattern.FactoryMethod
{
    public class TextQuestion:Question
    {
        public TextQuestion(int type)
        {
            this.QuestionType = type;
        }

        string _dis;
        public override string Display
        {
            get
            {
                return "text question.";
            }
            set
            {
                _dis = value;
            }
        }

        int _type = 0;
        public override int QuestionType
        {
            get
            {
                return 1;
            }
            set
            {
                _type = value;
            }
        }
    }
}
